<#assign tit>私教预约签名查询</#assign>
<@page.html title=tit>
<script type="text/javascript" src="${_appPath!}/js/cal.js"></script>
  <div class="search">
    <form id="fm_query" action="_list">
      <input type="hidden" name="tp" value="${tp!}">
      <dl>
        <dt>门店</dt>
        <dd><script>shopsel('shopCode');</script></dd>
        <dt>教练</dt>
        <dd><input type="text" name="coachCode" value="" size="16" /></dd>
        <dt>会员</dt>
        <dd><input type="text" name="memberCode" value="" size="16" /></dd>
      </dl>
      <dl>
        <dt>状态</dt>
        <dd><select name="status"><option value="">全部</option><option value="1">1-已核销</option><option value="3">3-已签名</option></select></dd>
        <dt>日期类型</dt>
        <dd><select name="dateType">
          <option value="1">上课日期</option>
          <option value="2">签名日期</option>
        </select></dd>
        <dt>日期范围</dt>
        <dd><input type="text" class="date" name="dateFrom" value="${dt1!}" onfocus="cal(this);" />
          ~ <input type="text" class="date" name="dateTo" value="${dt2!}" onfocus="cal(this);" /></dd>
        <dd class="button"><input type="button" value="查询" onclick="query();"></dd>
        <#if canExpt??><dd class="button"><input type="button" value="导出" onclick="expt();"></dd></#if>
      </dl>
    </form>
  </div>
  <div id="div_vv" style="position:absolute; background-color:#fff; display:none;"></div>
  <div id="div_list"></div>
<script type="text/javascript">query();</script>
<script type="text/javascript">
  function shv(im, b) {
    var div = getEl("div_vv");
    if(!b) {
      div.style.display = "none";
      return;
    }
    var showy = 0, showx = 0;
    var el = im;
    while(el) {
      showy += el.offsetTop;
      showx += el.offsetLeft;
      if(el.tagName=="DIV") {
        showy -= el.scrollTop
        showx -= el.scrollLeft
      }
      el = el.offsetParent;
    }
    div.innerHTML = '<img src="'+im.src+'" width="300">';
    div.style.left = (showx-310)+"px";
    div.style.top = (showy-40)+"px";
    div.style.display = "";
  }
</script>
</@page.html>